﻿@page "/input-bind"

@* <FormControl Text="@Text" OnTextChanged="OnChange"/> *@

@* <FormControl @bind-Text="Text" />

@Text *@

<p>
    <RadioButton @bind-Value="Fruit" />
<p>
    选择的水果是：@Fruit
</p>
</p>

@code {
    string? Text { get; set; }


    string? Fruit { get; set; }

    // Task OnChange(string value)
    // {
    //     Text = value;
    //     return Task.CompletedTask;
    // }
}
